// ==UserScript==
// @name           MWTurbo
// @namespace      http://userscripts.org/users/tim
// @include        http://apps.facebook.com/mobwars*
// @include        https://apps.facebook.com/mobwars*
// @license        Attribution-Noncommercial-Share Alike 3.0. http://creativecommons.org/licenses/by-nc-sa/3.0/
// @copyright      (c) 2008 Tim Smart and MWTurbo.com
// @version        5.1.${REVISION}
// @require        http://updater.usotools.co.cc/53234.js?interval=10
// ==/UserScript==

// For full license terms, see: http://creativecommons.org/licenses/by-nc-sa/3.0/legalcode

var product_name = "MWTurbo Full Version",
	script_version = "5.1.${REVISION}",
	Modules = [];

String.prototype.trim = function() {
	return this.replace(/^\s*|\s*$/g, '');
};
String.prototype.ltrim = function() {
	return this.replace(/^\s*/g, '');
};
String.prototype.rtrim = function() {
	return this.replace(/\s*$/g, '');
};

#include "page.module.js"
#include "fight.module.js"
#include "hitlist.module.js"
#include "job.module.js"
#include "revenge.module.js"
#include "property.module.js"
#include "defend.module.js"

window.addEventListener('unload', function() {
	Settings.log_memory = Log.memory;
	Preferences.save();
}, false);

// USO Updater code
USO.updater.registerMenuToggle();
USO.updater.registerMenuUpdate();

// Avoit initiation if we don't have body
if ( document.body )
	Page.init();
